package com.lb.pdm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * <p>
 * 重点人口表
 * </p>
 *
 * @author pdm
 * @since 2025-10-29
 */
@Data
@TableName("key_personnel")
@Schema(name = "KeyPersonnel对象", description = "重点人口表")
public class KeyPersonnel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "重点人口ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "人员ID")
    @TableField("person_id")
    private Long personId;

    @Schema(description = "重点人员类别")
    @TableField("category")
    private String category;

    @Schema(description = "风险等级：1-低风险，2-中风险，3-高风险")
    @TableField("risk_level")
    private Byte riskLevel;

    @Schema(description = "监管开始日期")
    @TableField("monitor_start_date")
    private Date monitorStartDate;

    @Schema(description = "监管结束日期")
    @TableField("monitor_end_date")
    private Date monitorEndDate;

    @Schema(description = "监管原因")
    @TableField("monitor_reason")
    private String monitorReason;

    @Schema(description = "监管措施")
    @TableField("monitor_measures")
    private String monitorMeasures;

    @Schema(description = "责任民警")
    @TableField("responsible_officer")
    private String responsibleOfficer;

    @Schema(description = "联系频次")
    @TableField("contact_frequency")
    private String contactFrequency;

    @Schema(description = "最后联系日期")
    @TableField("last_contact_date")
    private Date lastContactDate;

    @Schema(description = "状态：1-在管，0-解除")
    @TableField("status")
    private Byte status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(description = "创建人ID")
    @TableField("create_by")
    private Long createBy;

    @Schema(description = "更新人ID")
    @TableField("update_by")
    private Long updateBy;
}
